import request from '@/utils/request'

export function paperQuestionMvTo(relationId, idx) {
  return request({
    url: '/management/paper/paperQuestionMvTo/' + relationId + '/' + idx,
    method: 'post',
  })
}

export function removePaperQuestion(id) {
  return request({
    url: '/management/paper/' + id + '/paperQuestion',
    method: 'delete',
  })
}

export function get(id) {
  return request({
    url: '/management/paper/' + id,
    method: 'get',
  })
}
export function getPaperQuestionData(id) {
  return request({
    url: '/management/paper/' + id + '/paperQuestion',
    method: 'get',
  })
}
export function addQuestion(id, data) {
  return request({
    url: '/management/paper/' + id + '/addQuestion',
    method: 'post',
    data,
  })
}
export function getAll(data) {
  return request({
    url: '/management/paper/getAll',
    method: 'post',
    data,
  })
}

export function getList(data) {
  return request({
    url: '/management/paper/getList',
    method: 'post',
    data,
  })
}

export function doEdit(data) {
  return request({
    url: '/management/paper/doEdit',
    method: 'post',
    data,
  })
}

export function doAdd(data) {
  return doEdit(data)
}

export function doDelete(data) {
  return request({
    url: '/management/paper/doDelete',
    method: 'post',
    data,
  })
}
